Exodus 20:5-6

20:5 You shall not bow down to them or serve them, for I, the Lord, your God, am a jealous God, responding to the transgression of fathers by dealing with children to the third and fourth generations of those who reject me, 20:6 and showing covenant faithfulness to a thousand generations of those who love me and keep my commandments.